package com.weixing.mall.base.enums;

import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * @author siashan
 * @since v1.0
 */

@NoArgsConstructor
public enum IsEnableEnum implements IBaseEnum<Integer> {
    ENABLE(1,"可用"),
    DISABLE(0,"禁用");

    private int value;
    private String desp;

    IsEnableEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }


    public void setValue(int value) {
        this.value = value;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String getDesp() {
        return this.desp;
    }
}
